package com.zkk.tankgame;

import javax.swing.*;

public class ZkkTankGame01 extends JFrame {

    //定义MyPanel
    MyPanel mp = null;
    public static void main(String[] args) {

        ZkkTankGame01 zkkTankGame01 = new ZkkTankGame01();
    }
    public ZkkTankGame01(){
        mp = new MyPanel();
        this.add(mp);//添加面板（即绘图区域）这个控件
        this.setSize(1000,750);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
    }
}
